home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pvquan16.zip / QUANT / MAKEUNIX.OCT < prev    next >
Text File  |  1992-11-30  |  1KB  |  42 lines

  1. # Turbo-Make / UNIX Makefile for PVRAY Quantizer by F van der Hulst
  2.  
  3. # Turbo C stuff
  4.  
  5. # TARGET = ..\bin\octree.exe
  6. # CC     =d:\tc\bin\tcc
  7. # OBJ    =obj
  8. # LINK   = d:\tc\bin\tlink
  9. # OBJS = quant.$(OBJ) files.$(OBJ) octree.$(OBJ)
  10. # CFLAGS =-mc -1 -a -K -G -O -Z -r -c -k- -N- -v- -C -Id:\tc\include -w
  11. # LFLAGS = /c d:\tc\lib\c0c $(OBJS), $(TARGET), nul, @link.oct
  12.  
  13. # Following are for SCO Unix:
  14. # CC     = cc
  15. # LINK   = cc
  16. # OBJ    = o
  17. # CFLAGS = -c -M3 -J -Ox
  18. # LFLAGS = -o ../bin/octree -Ox -lm
  19.  
  20. # Following are for GNU:
  21. CC     = gcc
  22. LINK   = gcc
  23. OBJ    = o
  24. OBJS   = quant.$(OBJ) files.$(OBJ) octree.$(OBJ) 
  25. TARGET = ../bin/octree
  26. CFLAGS = -ansi -c -O -I/usr/lib/gcc-include -I../giflib -Dsparc
  27. LFLAGS = -o $(TARGET) /usr/lib/libm.a
  28.  
  29. # Implicit rules for making an object file from a .C file...
  30. #
  31. .c.$(OBJ) :
  32.     $(CC) $(CFLAGS) $*.c
  33.  
  34. $(TARGET) : $(OBJS) ../gif.lib
  35.     $(LINK) $(LFLAGS)
  36.  
  37. quant.$(OBJ)    : quant.c quant.h octree.h
  38.  
  39. files.$(OBJ)    : files.c quant.h
  40.  
  41. octree.$(OBJ) : octree.c quant.h
  42.